|
Server : LiteSpeed System : Linux host 5.15.0-161-generic #171-Ubuntu SMP Sat Oct 11 08:17:01 UTC 2025 x86_64 User : idnco5810 ( 1093) PHP Version : 8.2.29 Disable Function : NONE Directory : /usr/lib/python3/dist-packages/jeepney/integrate/ |
Upload File : |
"""Deprecated: use jeepney.io.tornado instead"""
from warnings import warn
from jeepney.io.tornado import *
warn("jeepney.integrate.tornado is deprecated. Tornado is now built on top of "
"asyncio, so please use jeepney.io.asyncio instead.", stacklevel=2)
async def connect_and_authenticate(bus='SESSION'):
conn = await open_dbus_connection(bus)
return DBusRouter(conn)
if __name__ == '__main__':
rtr = IOLoop.current().run_sync(connect_and_authenticate)
print("Unique name is:", rtr.unique_name)